package model

import "github.com/wdaglb/korm/sqltype"

type Config struct {
	Id int `json:"id"`
	Name string `json:"name" db:"name"`
	Value sqltype.KJson `json:"value" db:"value"`
}

type AllConfig struct {
	Base *BaseConfig `json:"base"`
	Login *LoginConfig `json:"login"`
}

type BaseConfig struct {
	Logo string `json:"logo"`
	Title string `json:"title"`
	Tel string `json:"tel"`
	QQ string `json:"qq"`
}

type LoginConfig struct {
	FailNumber int `json:"failNumber"`
	FailLimitTime int `json:"failLimitTime"`
}
